package com.molichuxing.gateway.bff.user.entity.response;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.ComplaintStatusEnum;
import com.molichuxing.services.property.UserSourceEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyg
 * 2019-08-13
 * 用户投vo
 * 
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ComplaintVo extends ResponseRootDto{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "投诉id")
    private Integer id;
    
	@ApiModelProperty(value = "用户id")
    private Integer userId;

	@ApiModelProperty(value = "投诉来源（1：IOS  2: android 3：微信 4：智能终端）")
    private Integer source;
    
	@ApiModelProperty(value = "投诉来源Str")
    private String sourceStr;

	@ApiModelProperty(value = "投诉内容")
    private String content;

	@ApiModelProperty(value = "投诉时间")
    private String submitTime;

	@ApiModelProperty(value = "处理状态(0:待处理， 1：处理中， 2：已处理)")
    private Integer status;
    
	@ApiModelProperty(value = "处理状态Str")
    private String statusStr;

	@ApiModelProperty(value = "操作时间（处理时间）")
    private String operationTime;

	@ApiModelProperty(value = "操作人姓名")
    private String accountAccount;

	@ApiModelProperty(value = "处理备注")
    private String remark;

	@ApiModelProperty(value = "真实姓名")
    private String name;

	@ApiModelProperty(value = "手机号")
    private String phone;
    
    public void setStatus(Integer status) {
    	this.status=status;
    	this.statusStr= status==null ? null : ComplaintStatusEnum.getName(status);
    }
    
    public void setSource(Integer source) {
    	this.source=source;
    	this.sourceStr= source==null ? null : UserSourceEnum.getName(source);
    }

}
